package com.hellohoper.script.config.admin.app.service;

import com.hellohoper.script.config.admin.app.dao.UserGroupMapper;
import com.hellohoper.script.config.admin.app.dao.pojo.UserGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserGroupService {

    @Autowired
    private UserGroupMapper userGroupMapper;

    public int deleteByPrimaryKey(Long id) {
        return userGroupMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserGroup record) {
        return userGroupMapper.insert(record);
    }

    public int insertSelective(UserGroup record) {
        return userGroupMapper.insertSelective(record);
    }

    public UserGroup selectByPrimaryKey(Long id) {
        return userGroupMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(UserGroup record) {
        return userGroupMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(UserGroup record) {
        return userGroupMapper.updateByPrimaryKey(record);
    }
}